home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / PowerPC / Dev / PPCRelease / Examples / IPC / SMakefile < prev   
Encoding:
Makefile  |  1998-06-23  |  4.4 KB  |  167 lines

  1. #--- Amiga PowerUP---
  2. # SAS Makefile
  3.  
  4. #####################################################################
  5. #
  6. # Options
  7. #
  8.  
  9. IPATH        =    IDIR=/TimerSupport/ IDIR=//include/ IDIR=include:
  10. GCCIPATH    =    -Iinclude: -I../../include/
  11. ASMFLAGS    =    -sa -w2- -wo- -M4000 -x -d$(CODETYPE)=1 -dEXEC_68060=0
  12. APATH        =    -iasm: -i//include -iinclude/
  13.  
  14. #####################################################################
  15. #
  16. # Machine Configuration
  17. #
  18.  
  19.  
  20. ASM        =    basm $(ASMFLAGS) $(APATH)
  21.  
  22. DEBUG        =    DEBUG=LINE
  23. OPTFLAGS    =    OPTIMIZEPEEP OPTIMIZE
  24. #OPTFLAGS    =    
  25. CFLAGS        =    STRINGMERGE NOSTACKCHECK PARMS=REGISTER CPU=68030 MATH=68881 DATA=FARONLY CODE=NEAR
  26. CPPFLAGS    =
  27. CC        =    sc $(CFLAGS) $(OPTFLAGS) $(DEBUG) $(IPATH)
  28. LINK        =    slink
  29. #LINK        =    DevTools:Apps/LK1.06/lk SINGLEHUNK
  30.  
  31. OBJECT        =    OBJNAME=
  32.  
  33.  
  34.  
  35. #####################################################################
  36. #
  37. # Default rules
  38. #
  39.  
  40. .c.o$(TARGET):
  41.     $(CC) $(OBJECT)$*.o$(TARGET) $*.c
  42.  
  43.  
  44. .asm.o$(TARGET):
  45.     $(ASM) -o$*.o$(TARGET) $*.asm
  46.  
  47.  
  48. all:    Msg2            \
  49.     Msg2PPC.elf        \
  50.     Msg2old            \
  51.     Msg2oldPPC.elf        \
  52.     Msg3            \
  53.     Msg3PPC.elf        \
  54.     Msg4            \
  55.     Msg4PPC.elf        \
  56.     Msg5            \
  57.     Msg5PPC.elf        \
  58.     Msg6            \
  59.     Msg6PPC.elf        \
  60.     Msg7            \
  61.     Msg7PPC.elf
  62.  
  63. Msg2.o:            Msg2.c
  64. Msg2PPC.elf:        Msg2PPC.c
  65. Msg2old.o:        Msg2old.c
  66. Msg2oldPPC.elf:        Msg2oldPPC.c
  67. Msg3.o:            Msg3.c
  68. Msg3PPC.elf:        Msg3PPC.c
  69. Msg4.o:            Msg4.c
  70. Msg4PPC.elf:        Msg4PPC.c
  71. Msg5.o:            Msg5.c
  72. Msg5PPC.elf:        Msg5PPC.c
  73. Msg6.o:            Msg6.c
  74. Msg6PPC.elf:        Msg6PPC.c
  75. Msg7.o:            Msg7.c
  76. Msg7PPC.elf:        Msg7PPC.c
  77.  
  78.  
  79.  
  80. Msg2PPC.elf:    Msg2PPC.c
  81.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg2PPC.c
  82.     ppc-amigaos-gas -o$*.oPPC Msg2PPC.s
  83.     ppc-amigaos-ld -r Msg2PPC.oPPC -o Msg2PPC.elf
  84.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  85.  
  86. Msg2oldPPC.elf:    Msg2oldPPC.c
  87.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg2oldPPC.c
  88.     ppc-amigaos-gas -o$*.oPPC Msg2oldPPC.s
  89.     ppc-amigaos-ld -r Msg2oldPPC.oPPC -o Msg2oldPPC.elf
  90.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  91.  
  92. Msg3PPC.elf:    Msg3PPC.c
  93.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg3PPC.c
  94.     ppc-amigaos-gas -o$*.oPPC Msg3PPC.s
  95.     ppc-amigaos-ld -r Msg3PPC.oPPC -o Msg3PPC.elf
  96.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  97.  
  98. Msg4PPC.elf:    Msg4PPC.c
  99.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg4PPC.c
  100.     ppc-amigaos-gas -o$*.oPPC Msg4PPC.s
  101.     ppc-amigaos-ld -r Msg4PPC.oPPC -o Msg4PPC.elf
  102.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  103.  
  104. Msg5PPC.elf:    Msg5PPC.c
  105.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg5PPC.c
  106.     ppc-amigaos-gas -o$*.oPPC Msg5PPC.s
  107.     ppc-amigaos-ld -r Msg5PPC.oPPC -o Msg5PPC.elf
  108.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  109.  
  110. Msg6PPC.elf:    Msg6PPC.c
  111.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg6PPC.c
  112.     ppc-amigaos-gas -o$*.oPPC Msg6PPC.s
  113.     ppc-amigaos-ld -r Msg6PPC.oPPC -o Msg6PPC.elf
  114.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  115.  
  116. Msg7PPC.elf:    Msg7PPC.c
  117.     ppc-amigaos-gcc -O2 -fomit-frame-pointer $(GCCIPATH) -v -S Msg7PPC.c
  118.     ppc-amigaos-gas -o$*.oPPC Msg7PPC.s
  119.     ppc-amigaos-ld -r Msg7PPC.oPPC -o Msg7PPC.elf
  120.     ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all --line-numbers $@ >$@.dump
  121.  
  122.  
  123.  
  124.  
  125. Msg2:    Msg2.o /TimerSupport/Time.o
  126.         $(LINK)                    \
  127. <WITH <
  128. lib:c.o Msg2.o /TimerSupport/Time.o TO Msg2 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  129. <
  130.  
  131. Msg2old:    Msg2old.o /TimerSupport/Time.o
  132.         $(LINK)                    \
  133. <WITH <
  134. lib:c.o Msg2old.o /TimerSupport/Time.o TO Msg2old LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  135. <
  136.  
  137. Msg3:    Msg3.o /TimerSupport/Time.o
  138.         $(LINK)                    \
  139. <WITH <
  140. lib:c.o Msg3.o /TimerSupport/Time.o TO Msg3 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  141. <
  142.  
  143. Msg4:    Msg4.o /TimerSupport/Time.o
  144.         $(LINK)                    \
  145. <WITH <
  146. lib:c.o Msg4.o /TimerSupport/Time.o TO Msg4 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  147. <
  148.  
  149. Msg5:    Msg5.o /TimerSupport/Time.o
  150.         $(LINK)                    \
  151. <WITH <
  152. lib:c.o Msg5.o /TimerSupport/Time.o TO Msg5 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  153. <
  154.  
  155. Msg6:    Msg6.o /TimerSupport/Time.o
  156.         $(LINK)                    \
  157. <WITH <
  158. lib:c.o Msg6.o /TimerSupport/Time.o TO Msg6 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  159. <
  160.  
  161. Msg7:    Msg7.o /TimerSupport/Time.o
  162.         $(LINK)                    \
  163. <WITH <
  164. lib:c.o Msg7.o /TimerSupport/Time.o TO Msg7 LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib
  165. <
  166.  
  167.